package com.sunwayhorizo.health.hl7.persistent.pk;

import java.io.Serializable;

public class RimCoreRoleTelAddrsPK implements Serializable {
    public Long roleId;
    public Long roleVersionNum;
    public Long telAddressId;

    public RimCoreRoleTelAddrsPK() {
    }

    public RimCoreRoleTelAddrsPK(Long roleId, Long roleVersionNum, Long telAddressId) {this.roleId = roleId;
        this.roleVersionNum = roleVersionNum;
        this.telAddressId = telAddressId;
    }

    public boolean equals(Object other) {
        if (other instanceof RimCoreRoleTelAddrsPK) {
            final RimCoreRoleTelAddrsPK otherRimCoreRoleTelAddrsPK = (RimCoreRoleTelAddrsPK) other;
            final boolean areEqual = 
                (otherRimCoreRoleTelAddrsPK.roleId.equals(roleId) && otherRimCoreRoleTelAddrsPK.roleVersionNum.equals(roleVersionNum) && otherRimCoreRoleTelAddrsPK.telAddressId.equals(telAddressId));
            return areEqual;
        }
        return false;
    }

    public int hashCode() {
        return super.hashCode();
    }
}
